package com.sunny.service;

import com.sunny.service.v2.RpcServer;

/**
 * @author Sunny
 * @date 2020/2/6
 */
@RpcServer(value = IHelloService.class, version = "v1.0")
public class HelloServiceImpl implements IHelloService {
    @Override
    public String sayHello(String content) {
        System.out.println("【v1.0】say Hello in: " + content);
        return "【v1.0】say Hello out: " + content;
    }

    @Override
    public String saveUser(User user) {
        System.out.println("【v1.0】save User in: " + user);
        return "【v1.0】save User out: " + user;
    }
}
